package com.atde._03_creational_design_patterns.fcatory.mydemo.demo01;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._03_creational_design_patterns.fcatory.mydemo.demo01
 * @Author: Del
 * @CreateTime: 2025-06-03  08:34
 * @Description: 简单工厂它将实例化的过程暴露在了工厂中，这个是一个弊端
 * 客户端可以不知道创建过程，它只需给定一个参数，就可以得到一个对象
 * @Version: 1.0
 */
public class Main {
    public static void main(String[] args) {
        Operation operation = OperationFactory.createOperation("+");
        assert operation != null;
        System.out.println(operation.getResult(1,2));
    }
}
